import request from "@/utils/request";
export default {
  article(params = {}) {
    return request.get(`/allArt`, { params });
  },
  updated(param) {
    const { field, id, value } = param;
    return request.get(
      // const { id,field,value} = param
      `/updateArt/${id}?cn=${field}&cv=${value}`
    );
  },
  artAdd(params = {}) {
    return request.get(`/artAdd`, { params });
  },
};
